(global.webpackJsonp = global.webpackJsonp || []).push([ [ "vote/sign" ], {
    "24df": function(e, t, n) {
        var i = n("d887");
        n.n(i).a;
    },
    "34f5": function(e, t, n) {
        n.r(t);
        var i = n("dcb6"), o = n("a500");
        for (var s in o) "default" !== s && function(e) {
            n.d(t, e, function() {
                return o[e];
            });
        }(s);
        n("24df");
        var c = n("f0c5"), a = Object(c.a)(o.default, i.b, i.c, !1, null, null, null, !1, i.a, void 0);
        t.default = a.exports;
    },
    a500: function(e, t, n) {
        n.r(t);
        var i = n("f67f"), o = n.n(i);
        for (var s in i) "default" !== s && function(e) {
            n.d(t, e, function() {
                return i[e];
            });
        }(s);
        t.default = o.a;
    },
    d887: function(e, t, n) {},
    dcb6: function(e, t, n) {
        n.d(t, "b", function() {
            return i;
        }), n.d(t, "c", function() {
            return o;
        }), n.d(t, "a", function() {});
        var i = function() {
            this.$createElement;
            this._self._c;
        }, o = [];
    },
    f068: function(e, t, n) {
        (function(e) {
            n("1067"), i(n("66fd"));
            var t = i(n("34f5"));
            function i(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = n, e(t.default);
        }).call(this, n("543d").createPage);
    },
    f67f: function(e, t, n) {
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0, n("db8f");
            var i, o = n("10aa"), s = n("189d"), c = n("7960"), a = n("8434"), u = (f(n("acb5")), 
            n("26cb")), r = f(n("801c")), l = n("a71e");
            function f(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            function d(e, t) {
                var n = Object.keys(e);
                if (Object.getOwnPropertySymbols) {
                    var i = Object.getOwnPropertySymbols(e);
                    t && (i = i.filter(function(t) {
                        return Object.getOwnPropertyDescriptor(e, t).enumerable;
                    })), n.push.apply(n, i);
                }
                return n;
            }
            function h(e, t, n) {
                return t in e ? Object.defineProperty(e, t, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : e[t] = n, e;
            }
            var m = (i = {
                created: function() {},
                computed: function(e) {
                    for (var t = 1; t < arguments.length; t++) {
                        var n = null != arguments[t] ? arguments[t] : {};
                        t % 2 ? d(Object(n), !0).forEach(function(t) {
                            h(e, t, n[t]);
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d(Object(n)).forEach(function(t) {
                            Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
                        });
                    }
                    return e;
                }({}, (0, u.mapGetters)([ "mainColor", "user" ])),
                mounted: function() {
                    var e = this;
                    if (e.shenhe) {
                        var t = {
                            vote_id: e.vote_id
                        };
                        (0, s.voteRegisterExamine)(t).then(function(t) {
                            (0, l.isEmpty)(t) || (e.shenhezhuangtai = t.examine, e.success_phone = t.phone, 
                            (0, l.isEmpty)(t.imglist) || (e.success_img = t.imglist.split(",")), e.success_desc = t.desc, 
                            e.success_title = t.title, e.success_content = t.content, (0, l.isEmpty)(t.jujue_content) ? e.jujue_content = "无理由拒绝" : e.jujue_content = t.jujue_content);
                        });
                    } else this.shenhezhuangtai = 0;
                },
                data: function() {
                    return {
                        formShow: !0,
                        alert_show: !1,
                        cansai_name: "",
                        cansai_desc: "",
                        cansai_imglist: [],
                        cansai_content: "",
                        cansai_phone: "",
                        uploadimg_list: [],
                        input_jiaoyan: !1,
                        shenhezhuangtai: 0,
                        color: "",
                        vote_id: "",
                        shenhe: !1,
                        canbaoming: -1,
                        jujue_content: "",
                        success_phone: "",
                        success_img: "",
                        success_title: "",
                        success_content: "",
                        success_desc: ""
                    };
                }
            }, h(i, "created", function() {}), h(i, "onLoad", function(e) {
                this.color = e.color, this.vote_id = e.id, (0, l.isEmpty)(e.pid) || r.default.commit("config/SET_PID", e.pid), 
                (0, l.isEmpty)(decodeURIComponent(e.scene).split("pid=")[1]) || r.default.commit("config/SET_PID", decodeURIComponent(e.scene).split("pid=")[1]), 
                (0, l.isEmpty)(e.shenhezhuangtai) ? this.shenhe = !0 : this.shenhe = !1;
            }), h(i, "methods", {
                click_sign: function(t) {
                    var n = this;
                    (0, c.h5JudgeLogin)(2).then(function(i) {
                        if (!i) {
                            var s = n;
                            if ((0, l.isEmpty)(s.cansai_name)) return e.showToast({
                                title: "请输入参赛名称",
                                icon: "none",
                                duration: 3e3
                            }), !1;
                            if (!(0, l.isEmpty)(s.cansai_name) && (0, l.isEmpty)(s.cansai_phone)) return e.showToast({
                                title: "请输入电话号码",
                                icon: "none",
                                duration: 3e3
                            }), !1;
                            if (!(0, l.isEmpty)(s.cansai_name) && !(0, l.isEmpty)(s.cansai_phone) && !(0, l.isPhoneNumber)(s.cansai_phone)) return e.showToast({
                                title: "请输入正确电话号码",
                                icon: "none",
                                duration: 3e3
                            }), !1;
                            if (0 == s.cansai_imglist.length) return e.showToast({
                                title: "最少选择一个图片",
                                icon: "none",
                                duration: 3e3
                            }), !1;
                            s.canbaoming = 0, -1 == t && (0, o.uploadSlgnImage)(1, s.cansai_imglist).then(function(e) {
                                s.uploadimg_list = e, n.getvoteregister();
                            });
                        }
                    });
                },
                getvoteregister: function() {
                    var e = this, t = {
                        title: e.cansai_name,
                        desc: e.cansai_desc,
                        imglist: e.cansai_imglist.length > 0 ? e.uploadimg_list.join(",") : "",
                        content: e.cansai_content,
                        phone: e.cansai_phone,
                        vote_id: e.vote_id
                    };
                    (0, s.voteRegister)(t).then(function(t) {
                        e.alert_show = !0, e.baomingtoast();
                    });
                },
                baomingtoast: function() {
                    var t = this;
                    e.showToast({
                        title: "报名成功",
                        icon: "none",
                        duration: 1500
                    }), setTimeout(function() {
                        (0, a.route)({
                            url: "/vote/index",
                            type: 3,
                            data: {
                                id: t.vote_id
                            }
                        });
                    }, 1500);
                },
                close_dialog: function() {
                    this.alert_show = !1;
                },
                chooseimg: function() {
                    var t = this;
                    e.chooseImage({
                        count: 6,
                        sizeType: [ "original", "compressed" ],
                        sourceType: [ "album" ],
                        success: function(e) {
                            for (var n = 0; n < e.tempFilePaths.length; n++) t.cansai_imglist.push(e.tempFilePaths[n]);
                        }
                    });
                },
                deleteimg: function(e) {
                    this.cansai_imglist.splice(e, 1);
                },
                yulan_img: function(t) {
                    e.previewImage({
                        current: t,
                        urls: this.cansai_imglist
                    });
                },
                rebaoming: function() {
                    this.shenhezhuangtai = 0, this.$forceUpdate();
                }
            }), i);
            t.default = m;
        }).call(this, n("543d").default);
    }
}, [ [ "f068", "common/runtime", "common/vendor" ] ] ]);